/*
 * @description: spu管理相关接口返回值ts类型
 * @author: Flechaxo
 * @date: 2024-06-26 13:59:55
 * @version: V1.0.5
*/
import { responseData } from '@/api/user/type.ts'

export interface spuData {
  id?: number,
  createTime: string,
  updateTime: string,
  spuName: string,
  description: string,
  category3Id: number | string,
  tmId: number,
  spuSaleAttrList: null,
  spuImageList: null,
  spuPosterList: null
}

export type Records = spuData[]

// 定义获取已有的spu接口返回值数据的ts类型
export interface SpuResponseData extends responseData {
  data: {
    records: Records,
    total: number,
    size: number,
    current: number,
    optimizeCountSql: boolean,
    hitCount: boolean,
    countId: null,
    maxLimit: null,
    searchCount: boolean,
    pages: number
  }
}
